package com.invest.utils.email;

import java.util.Map;
import java.util.Properties;

/**
 * <p>注释</p>
 *
 * @author yuyizhao
 * @version v0.1 2016/7/22 Exp
 */
public class EmailHost {

    private String host;

    private int port;

    private Properties properties;

    public static EmailHost instance(String host,int port,Map<String,String> propMap){
        EmailHost emailHost = new EmailHost();
        emailHost.host = host;
        emailHost.port = port;
        emailHost.properties = new Properties();
        for(String key : propMap.keySet()){
            emailHost.properties.put(key,propMap.get(key));
        }
        return emailHost;
    }

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

    public Properties getProperties() {
        return properties;
    }
}
